﻿using System;

namespace TSites.GUI.Extensions
{
	public static class StringExtension
	{
		public static string ToUpperFast(this string value)
		{
			char[] output = value.ToCharArray();

			int length = output.Length;
			for (int i = 0; i < length; i++)
			{
				if (output[i] >= 'a' && output[i] <= 'z')
				{
					output[i] = (char)(output[i] - 32);
				}
			}

			return new string(output);
		}
	}
}
